<#import "/common/spring.ftl" as spring />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="${base}/css/login.css" />
<link rel="icon" href="${base}/images/favicon.ico" type="image/x-icon" />
<title>用户注册</title>
</head>
<body>
<!-- header begin -->
<#include "/common/header.ftl"/>
<!-- header end -->
<div id="Main">
	<h2><span>欢迎加入洛卡网，您只需填写简单资料，即可成功成为洛卡网的会员</span><img src="${base}/images/suo.gif" /> 用户注册</h2>
    <div class="register">
    	<form id="registerForm" name="registerForm" action="${base}/register.do" method="post">
    		<@spring.formHiddenInput "user.backUrl" />
        	<div><span class="must_red">*</span>为必填项[已有帐号，请点击这里<a href="${base}/login.do">登录</a>]</div>
        	<div>
        		<span  class="f_red"><em><@spring.error "user.username"/></em></span><br/>
        		<label>用户名：</label><span class="must_red">*</span> 
        		<@spring.formInput "user.username" />6-16个字母、数字或下划线（必须以字母开头）
        	</div>
            <div>
				<span  class="f_red"><em><@spring.error "user.password"/></em></span><br/>
            	<label>密　码：</label>
            	<span class="must_red">*</span> 
            	<@spring.formPasswordInput "user.password" />6-16个字符
            </div>
            <div>
				<span  class="f_red"><em><@spring.error "user"/></em></span><br/>
            	<label>确认密码：</label>
            	<span class="must_red">*</span> 
            	<@spring.formPasswordInput "user.confirmPassword" />必须和上面的密码输入一致
			</div>
            <div>
				<span  class="f_red"><em><@spring.error "user.email"/></em></span><br/>
            	<label>电子邮件：</label>
            	<span class="must_red">*</span> 
            	<@spring.formInput "user.email" />请输入正确的邮箱地址，一个邮箱只能注册一个用户名
			</div>
        	<div>
				<span  class="f_red"><em><@spring.error "user.captcha"/></em></span><br/>
	        	<label>验证码：</label>
	        	<span class="must_red">*</span>
	        	<@spring.formInput "user.captcha" />
	        	<img id="captcha_image" src="${base}/captcha.do" />　
	        	看不清，<a href="#" id="reload_captcha">点击更换</a>？
        	</div>
        	<input type="submit" id="btn_register" value=" "/>
            <div>
            	<label>服务条款：</label><span class="must_red" style="float:left;">*</span>
                <textarea cols="75" rows="10">
					<#include "/common/protocol.ftl"/>		
                </textarea><br />
            </div>
            <div>
            	<@spring.formCheckbox "user.agreement" />我同意
				<span  class="f_red"><@spring.error "user.agreement"/></span>
			</div>
        </form>
    </div>
</div>
<!-- footer start -->
<#include "/common/footer.ftl"/>
<!-- footer end -->
<script type="text/javascript" src="${base}/js/lib/jquery.validate.js"></script>  
<script type="text/javascript" src="${base}/js/register.js"></script>
</body>
</html>